package com.macro.mall.dao;

import com.macro.mall.model.OmsDistributionStoreOrder;
import com.macro.mall.model.OmsDistributionStoreOrderExample;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

public interface OmsDistributionStoreOrderDao {
    long countByExample(OmsDistributionStoreOrderExample example);

    int deleteByExample(OmsDistributionStoreOrderExample example);

    int deleteByPrimaryKey(Long id);

    int insert(OmsDistributionStoreOrder record);

    int insertSelective(OmsDistributionStoreOrder record);

    List<OmsDistributionStoreOrder> selectByExample(OmsDistributionStoreOrderExample example);

    OmsDistributionStoreOrder selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") OmsDistributionStoreOrder record, @Param("example") OmsDistributionStoreOrderExample example);

    int updateByExample(@Param("record") OmsDistributionStoreOrder record, @Param("example") OmsDistributionStoreOrderExample example);

    int updateByPrimaryKeySelective(OmsDistributionStoreOrder record);

    int updateByPrimaryKey(OmsDistributionStoreOrder record);

    /**
     * 获取店铺提现总金额
     * @param storeId
     * @param status
     * @return
     */
    BigDecimal getStoreMx(@Param("storeId") Long storeId, @Param("status") Integer status);
}